import http from '.';

export const login = (params: { username: string; password: string }) =>
    http.post('/login', params);

export const register = (data: {
    username: string;
    password: string;
    nickname: string;
}) => http.post('/register', data);
